﻿var flag = "";
//初始化
if (typeof ($) != "undefined") {
    $(document).ready(function () {
        //alert("postid:" + getPar1("PostID"))
        flag = getPar1("flag");
        var SkillID = getPar1("SkillID");
        var SkillName = getPar1("SkillName");
        $("#SkillID").val(SkillID)
        $("#SkillName").val(SkillName);
    });
    instance[0].ModifyTime = new Date();
}

var fnCheckData = function () {
    try {
        if ($("#SkillID").val() == "") {
            return "【技能】不能为空!";
        }
        if ($("#Level").val() == "") {
            return "【级别级数】不能为空!";
        }
        if ($("#SkillRequire").val() == "") {
            return "【技能要求】不能为空!";
        }
        var reg = /^\+?[1-9][0-9]*$/;
        if (reg.test($("#Level").val()) == false) {
            return "【级别级数】需要输入正整数!";
        }
    }
    catch (e)
     { }
 }


